package com.cn.sl.server.api.system.user.model.dto

import com.cn.sl.server.api.system.user.model.entity.UserStatus
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull

class UpdateAdminUserStatusParam(
    @field:NotEmpty(message = "用户id不能为空")
    var ids: List<Long>?,
    @NotNull(message = "状态不能为空")
    var status: UserStatus?
) {
    fun toDto(): UpdateAdminUserStatusDto {
        return UpdateAdminUserStatusDto(
            ids = ids!!,
            status = status!!
        )
    }
}

data class UpdateAdminUserStatusDto(
    var ids: List<Long>,
    var status: UserStatus
)